package com.dao;

import com.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    User login(String username, String password);
    int registered(String name,String pwd);
    List<User> userList();
    int modify(int id, String name, String address, String phone, String image);

    User getUser(String name, String pwd) throws SQLException;
    int modifyPwd(int id, String pwd) throws SQLException;
    User selectName(String name);

    int getCartNum(int userId);

    User getUserByID(int userId);
}
